﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xrm.Sdk.Metadata;

namespace Crm2011EventBinder
{
    public class EntityContainer
    {

        public EntityContainer(EntityMetadata EntityMetadata) 
        {
            this.EntityMetadata = EntityMetadata;
        }

        public EntityMetadata EntityMetadata { get; set; }

        public override string ToString()
        {
            return EntityMetadata.DisplayName.UserLocalizedLabel.Label + " (" + EntityMetadata.LogicalName + ")";
        }
    }
}
